package main.pojo;

import java.io.Serializable;
import java.util.Date;

/**
 * @author WUJA13
 *
 */
public class User implements Serializable{

	
	private static final long serialVersionUID = 1L;
	private String uname;
	private Double sal;
	private Date birth;
	private Boolean sex;
	private byte[] headPic;
	
	public byte[] getHeadPic() {
		return headPic;
	}
	public void setHeadPic(byte[] headPic) {
		this.headPic = headPic;
	}
	
	public String getUname() {
		return uname;
	}
	public void setUname(String uname) {
		this.uname = uname;
	}
	public Double getSal() {
		return sal;
	}
	public void setSal(Double sal) {
		this.sal = sal;
	}
	public Date getBirth() {
		return birth;
	}
	public void setBirth(Date birth) {
		this.birth = birth;
	}
	public boolean isSex() {
		return sex;
	}
	public void setSex(Boolean sex) {
		this.sex = sex;
	}
	public User(String uname, Double sal, Date birth, Boolean sex , byte[] headPic) {
		super();
		this.uname = uname;
		this.sal = sal;
		this.birth = birth;
		this.sex = sex;
		this.headPic = headPic;
	}
	public User() {
		super();
	}
	
	@Override
	public String toString() {
		return "User [uname=" + uname + ", sal=" + sal + ", birth=" + birth
				+ ", sex=" + sex + "]";
	}
	
	
	
}
